﻿using Core.Framework.Model.Common;
using Core.Framework.Model.WChat;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.IBusiness.ISDK
{
    /// <summary>
    /// 微信付款
    /// </summary>
    public interface IWCahtPay
    {
        /// <summary>
        /// 电商订单付款
        /// </summary>
        /// <param name="orderKey">订单号</param>
        /// <param name="projectInfo">项目信息</param>
        /// <returns></returns>
        MethodResult<KeyValuePair<decimal, string>> WChatShopOrderPay(int orderKey, ApiProjectInfo projectInfo);


        /// <summary>
        /// 服务订单付款
        /// </summary>
        /// <param name="title">订单名称</param>
        /// <param name="orderKey">订单号</param>
        /// <param name="projectInfo">项目信息</param>
        /// <returns></returns>
        MethodResult<KeyValuePair<decimal, string>> WChatServiceOrderPay(string title, int orderKey, ApiProjectInfo projectInfo);


        /// <summary>
        /// 付款
        /// </summary>
        /// <param name="price">订单金额</param>
        /// <param name="title">订单名称</param>
        /// <param name="projectInfo">项目信息</param>
        /// <returns></returns>
        MethodResult<KeyValuePair<decimal, string>> WChatPay(decimal price, string title, ApiProjectInfo projectInfo);

        /// <summary>
        /// 小程序电商订单付款
        /// </summary>
        /// <param name="orderKey">订单号</param>
        /// <returns></returns>
        MethodResult<MinWChatPayParameter> MinWChatShopOrderPay(int orderKey);



    }
}
